<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"    
      xmlns:f="http://java.sun.com/jsf/core">

    <body>
        <ui:composition template="./../MasterPage/masterPage.xhtml">
            <ui:define name="content">                
                <p:panel header="Mantenedor de Usuario">
                    <h:form id="frmfieldset">
                        <p:growl id="grow2" showDetail="true"/>
                        <h:panelGrid id="nuevo" columns="1" width="100%" >                
                            <p:fieldset legend="Editar Usuario" toggleable="true" toggleSpeed="500">  
                                <p:ajax event="toggle"  update="grow2" />              
                                <h:panelGrid columns="2" cellpadding="10">                         
                                    <h:outputText value="Login: " />  
                                    <h:outputText style="width: 85%" value="#{managedBeanIniciosesion.objetoUsuario.usuLogin}"/> 
                                    <h:outputText value="Password ANTIGUO: " />  
                                    <h:inputSecret value="#{managedBeanUsuario.passwordUsuario}"/> 
                                    
                                    <h:outputText value="NUEVO PASSWORD" />  
                                    <h:inputSecret value="#{managedBeanUsuario.password1}"/> 
                                    
                                    
                                    <h:outputText value="NUEVO PASSWORD ( REPETIR )" />  
                                    <h:inputSecret value="#{managedBeanUsuario.password2}"/> 
                                    
                                    <p:separator />
                                    <p:commandButton icon="ui-icon-arrowrefresh-1-w" value="Actualizar" action="#{managedBeanUsuario.editar(managedBeanIniciosesion)}" update=":frmfieldset" />
                                </h:panelGrid>  
                            </p:fieldset>
                        </h:panelGrid>
                    </h:form>
                </p:panel>
            </ui:define>
        </ui:composition>
    </body>
</html>
